package com.txts.road.app.message.model.dto;

import java.io.Serial;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import java.time.LocalDateTime;
import com.fasterxml.jackson.annotation.JsonFormat;
import jakarta.validation.constraints.*;


/**
 * 联系人表单对象
 *
 * @author baoyr
 * @since 2025-07-17 15:01
 */
@Getter
@Setter
@Schema(description = "联系人表单对象")
public class ContactDTO implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "联系人ID")
    @NotNull(message = "联系人ID不能为空")
    private Long id;

    @Schema(description = "用户ID")
    @NotNull(message = "用户ID不能为空")
    private Long userId;

    @Schema(description = "联系人用户ID")
    @NotNull(message = "联系人用户ID不能为空")
    private Long contactUserId;

    @Schema(description = "备注名称")
    @Size(max=50, message="备注名称长度不能超过50个字符")
    private String remarkName;

    @Schema(description = "创建时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;


}
